package ut.servlet.member;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletException;
public class SendVerifyEmail extends HttpServlet{
	public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{
		// 進行驗證信件發送
		ut.data.User user = (ut.data.User)request.getSession().getAttribute("user");
		if(user.verify == 0){
			ut.service.Mail.sendVerifyEmail(user.id, user.email, user.name, ut.util.MD5.digestToHex(user.id + " at ultimate translation (!@$^#!^*&)"));
		}
	}
}